<include file="Public:header"/>

<body>
<include file="User/Home/View/default/top.html" />
<include file="User/Home/View/default/left.html" />


<!-- Main Wrapper -->
<div id="wrapper" onclick="hioe()">

    <div class="content" style="background:#9999">


        <!-- page specific plugin styles -->
        <link rel="stylesheet" href="/assets/css/jquery-ui-1.10.3.custom.min.css" />
        <script src="/assets/js/jquery.validate.min.js"></script>
        <script src="/scripts/jq_area.js"></script>
        <script src="/scripts/region.js"></script>
        <div class="normalheader">
            <div class="hpanel">
                <div class="panel-body">
                    <a class="small-header-action" href="">
                        <div class="clip-header"> <i class="fa pe-7s-arrow-up-right2"></i> </div>
                    </a>
                    <div id="hbreadcrumb" class="pull-right m-t-lg">
                        <ol class="hbreadcrumb breadcrumb">
                            <li><a href="/user/home">首页</a> </li>
                            <li class="active"> <span><a>修改个人资料</a></span> </li>
                        </ol>
                    </div>
                    <h2 class="font-light m-b-xs"> 修改个人资料 </h2>
                    <small></small>
                </div>
            </div>
        </div>
        <div class="hpanel">
            <div class=" panel-body">
                <!-- PAGE CONTENT BEGINS -->

                <form class="form-horizontal" id="validation-form" method="post">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="username">会员编号:</label>

                        <div class="col-xs-12 col-sm-3">
                            <div class="clearfix">
                                <input type="hidden" name="theid" value="3996" />
                                <input type="text" readonly class="form-control" value="sqlyl66" />
                            </div>
                        </div>
                    </div>



                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="realname">真实姓名:</label>

                        <div class="col-xs-12 col-sm-3">
                            <div class="clearfix">

                                <input type="text" readonly class="form-control" value="李艳丽" />
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right">性别</label>
                        <div class="col-xs-12 col-sm-3">
                            <div>
                                <label class="blue">
                                    <input name="gender" value="男"  type="radio" class="ace" />
                                    <span class="lbl"> 男</span>
                                </label>
                                <label class="blue">
                                    <input name="gender" value="女"  type="radio" class="ace" />
                                    <span class="lbl"> 女</span>
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="phone">手机号码:</label>

                        <div class="col-xs-12 col-sm-3">
                            <div class="clearfix">

                                <input type="text" readonly class="form-control" value="18639059558" />
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="email">邮箱:</label>

                        <div class="col-xs-12 col-sm-3">
                            <div class="clearfix">

                                <input type="text" readonly class="form-control" value="18639059558@163.com" />
                            </div>
                        </div>
                    </div>

                    <div class="hr hr-dotted"></div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="qq">QQ:</label>
                        <div class="col-xs-12 col-sm-3">
                            <div class="clearfix">
                                <input type="text" readonly class="form-control" value="" />
                            </div>
                        </div>
                    </div>



                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="answer">微信号:</label>

                        <div class="col-xs-12 col-sm-3">
                            <div class="clearfix">
                                <input type="text" readonly class="form-control" value="liyanli9558" />
                            </div>
                        </div>
                    </div>

                    <div class="hr hr-dotted"></div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="bankname">银行卡发卡行:</label>

                        <div class="col-xs-12 col-sm-3">
                            <div class="clearfix">
                                <select class="form-control" id="bankname" name="bankname"><option value="中国银行">中国银行</option>
                                    <option value="中国农业银行">中国农业银行</option>
                                    <option selected="selected" value="中国建设银行">中国建设银行</option>
                                    <option value="中国工商银行">中国工商银行</option>
                                    <option value="中国光大银行">中国光大银行</option>
                                    <option value="中国招商银行">中国招商银行</option>
                                    <option value="中信银行">中信银行</option>
                                    <option value="中国民生银行">中国民生银行</option>
                                    <option value="平安银行">平安银行</option>
                                    <option value="交通银行">交通银行</option>
                                    <option value="华夏银行">华夏银行</option>
                                    <option value="浦发银行">浦发银行</option>
                                    <option value="广发银行">广发银行</option>
                                    <option value="农村信用社">农村信用社</option>
                                    <option value="中国邮政银行">中国邮政银行</option>
                                </select>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="bankcard">银行卡号:</label>

                        <div class="col-xs-12 col-sm-3">
                            <div class="clearfix">
                                <input type="text" readonly class="form-control" value="6227 0752 3018 6088" />
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="bankofdeposit">开户行:</label>

                        <div class="col-xs-12 col-sm-3">
                            <div class="clearfix">
                                <input type="text" readonly class="form-control" value="商丘建行商丘分行" />
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="bankuser">银行卡户名:</label>

                        <div class="col-xs-12 col-sm-3">
                            <div class="clearfix">
                                <input type="text" readonly class="form-control" value="李艳丽" />
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="bankuser">支付宝账号:</label>

                        <div class="col-xs-12 col-sm-3">
                            <div class="clearfix">
                                <input type="text" readonly class="form-control" value="18639059558" />
                            </div>
                        </div>
                    </div>



                    <div class="hr hr-dotted"></div>


                </form>

                <!-- PAGE CONTENT ENDS -->
            </div><!-- /.col -->
        </div><!-- /.row -->
        <!-- page specific plugin scripts -->
        <!--[if lte IE 8]>
        <script src="/assets/js/excanvas.min.js"></script>
        <![endif]-->
        <script src="/assets/js/jquery-ui-1.10.3.custom.min.js"></script>
        <script src="/assets/js/jquery.ui.touch-punch.min.js"></script>
        <script type="text/javascript">
            jQuery(function ($) {

                $("#area").area({ cache: region });

                $("#province").val();
                $("#city").val();
                $("#county").val();



                $('#validation-form').validate({
                    errorElement: 'div',
                    errorClass: 'help-block',
                    focusInvalid: false,
                    rules: {
                        email: {
                            required: true,
                            email: true
                        },
                        //nickname: {
                        //    required: true
                        //},
                        phone: {
                            required: true,
                            phone: 'required'
                        },
                        realname: {
                            required: true
                        },
                        bankname: 'required',
                        bankcard: 'required',
                        bankofdeposit: 'required',
                        bankuser: {
                            required: true,
                            equalTo: "#realname"
                        },
                        gender: 'required'
                    },

                    messages: {
                        email: {
                            required: "请输入正确的邮箱地址.",
                            email: "请输入正确的邮箱地址."
                        },
                        phone: {
                            required: "请输入手机号码."
                        },
                        //nickname: "请输入昵称",
                        realname: "请输入真实姓名",
                        bankname: "请选择银行卡发卡行",
                        bankcard: "请填写银行卡号",
                        bankofdeposit: "请填写银行卡开户行",
                        bankuser: "请填写银行卡户名",
                        gender: "请选择性别"
                    },

                    invalidHandler: function (event, validator) { //display error alert on form submit
                        $('.alert-danger', $('.login-form')).show();
                    },

                    highlight: function (e) {
                        $(e).closest('.form-group').removeClass('has-info').addClass('has-error');
                    },

                    success: function (e) {
                        $(e).closest('.form-group').removeClass('has-error').addClass('has-info');
                        $(e).remove();
                    },

                    errorPlacement: function (error, element) {
                        if (element.is(':checkbox') || element.is(':radio')) {
                            var controls = element.closest('div[class*="col-"]');
                            if (controls.find(':checkbox,:radio').length > 1) controls.append(error);
                            else error.insertAfter(element.nextAll('.lbl:eq(0)').eq(0));
                        }
                        else if (element.is('.select2')) {
                            error.insertAfter(element.siblings('[class*="select2-container"]:eq(0)'));
                        }
                        else if (element.is('.chosen-select')) {
                            error.insertAfter(element.siblings('[class*="chosen-container"]:eq(0)'));
                        }
                        else error.insertAfter(element.parent());
                    },

                    submitHandler: function (form) {
                    },
                    invalidHandler: function (form) {
                    }
                });

            });
        </script>

    </div>


</div>

<script src="/layer/layer.js"></script>
<script>

    function tc() {
        layer.confirm("您确定要退出么？",
                {
                    btn: ['是的', '不是，点错了'], //按钮
                }, function () {
                    window.location.href = '/user/home/logout';
                })
    }

    function show() {
        $(".flipInX").css("display", "block");

    }

    function hioe() {
        $(".flipInX").css("display", "none");
    }


    $(function () {



        $("#canyuzhi").change(function () {

            //alert($(this).val());

            $("#regs").submit();


        });


        var $from = null;

        $(".cancel").click(function () {
            $from = $(this).parents().eq(0);


            $div = $(this).parents().eq(2);


            //$("#myModa31").modal('toggle');
            var order_id = $(this).data('id');

            swal({
                        title: "您确定要取消吗？",
                        text: "",
                        type: "warning",
                        showCancelButton: true,
                        confirmButtonColor: "#DD6B55",
                        confirmButtonText: "是的，我要取消",
                        cancelButtonText: "不，我不取消",
                        closeOnConfirm: false,
                        closeOnCancel: true
                    },
                    function (isConfirm) {
                        if (isConfirm) {
                            $.post('/tu/cancel_provide_request', { order_id: order_id }, function (data) {
                                if (data) {
                                    swal("已取消", "取消成功.", "success");
                                    $div.remove();
                                }
                            });

                        } else {
                            swal("", "", "error");
                        }
                    });

        });


        $(".cancel2").click(function () {
            $from = $(this).parents().eq(0);
            $div = $(this).parents().eq(2);


            //$("#myModa31").modal('toggle');
            var order_id = $(this).data('id');

            swal({
                        title: "您确定要取消吗？",
                        text: "",
                        type: "warning",
                        showCancelButton: true,
                        confirmButtonColor: "#DD6B55",
                        confirmButtonText: "是的，我要取消",
                        cancelButtonText: "不，我不取消",
                        closeOnConfirm: false,
                        closeOnCancel: true
                    },
                    function (isConfirm) {
                        if (isConfirm) {
                            $.post('/tu/cancel_get_request', { order_id: order_id }, function (data) {
                                if (data) {
                                    swal("已取消", "取消成功.", "success");
                                    $div.remove();
                                }
                            });

                        } else {
                            swal("", "", "error");
                        }
                    });

        });




        $("#yes_cancel").click(function () {

            console.log($from);

            $("#wait").submit();
            //$from.submit();
        });



        $(".btngethelp").click(function () {
            // $(".balance").val($(this).data("cp"));
            // $(".sell").val($(this).data("cp"));
            if ($(this).data("wallet_type") == "tj") {
                $("#qb").css("display", "none");
                $(".balance").val($(this).data("cpc"));
                $(".sell").val($(this).data("cp"));
                $(".max").val($(this).data("max"));
                $("#istype").val(1);
            } else if ($(this).data("wallet_type") == "ml") {
                $("#qb").css("display", "none");
                $(".balance").val($(this).data("cpc"));
                $(".sell").val($(this).data("cp"));
                $(".max").val($(this).data("max"));
                $("#istype").val(3);
            } else if ($(this).data("wallet_type") == "jl") {
                $("#qb").css("display", "none");
                $(".balance").val($(this).data("cpc"));
                $(".sell").val($(this).data("cp"));
                $(".max").val($(this).data("max"));
                $("#istype").val(2);
            } else {
                $(".balance").val(0.00);
                $(".sell").val(0.00);
            }



            $(".get_amount").val(100);
            $("#wallet_type").val($(this).data("wallet_type"));
            $("#gethelpmodal").modal("toggle");
            $("#gh_amount").text(100);
            var getvalue = 100 * parseFloat($(".hl").html()) ;
            $("#gh").text(getvalue);
        });
        $("#get_amount").on('keyup', function () {
            if (isNaN($(this).val())) {
                $(this).val(0);
            }
            var ths = $(".get_amount").val();
            var amount = ths * 1;
            var cp = parseInt($(".balance").val());
            var maxx = parseInt($(".max").val());
            var min = parseInt($(".min").val());
            var getvalue = amount * parseFloat($(".hl").html());
            $("#gh_amount").text(amount);
            $("#gh").text(getvalue);
            if (amount <= cp && amount <= maxx && amount >= min) {
                $("#gh_amount").css("color", "#00FF00");
                $("#gh").css("color", "#00FF00");
                $('.btnconfirm').removeAttr("disabled");
            } else {
                $('.btnconfirm').attr('disabled', "true");
                $("#gh_amount").css("color", "red");
                $("#gh").css("color", "red");
            }

            $("#amount_get").text(getvalue);
        });
        $(".btn_get_next").click(function () {
            var sstr = '';
            $('.ckbox2').each(function (index, element) {
                if ($(this).prop('checked')) {
                    sstr += $(this).val() + ',';
                }
            });
            $("#payment_method2").val(sstr);

            $("#get_help").submit();
        });

        $("#select_fanshi").click(function () {
            var id = $("#comid").val();
            var status = $('.comfir:checked').val();
            window.location.href = '/user/home/quer?type=' + status + '&id=' + id;

        });


        $("#select_fanshi2").click(function () {

            var id = $("#completid").val();

            var status = $('.comfir2:checked').val();

            $("#pro_status").val(status);

            if (status == 1) {
                $("#myModa25").modal('toggle');
            } else {
                window.location.href = '/user/home/queb?type=' + status + '&id=' + id;
            }

        });

        $(".jl_yin").click(function () {
            $("#yanchi").css("display", "none");
        })

        $("#select_fanshi3").click(function () {

            var id = $("#completid").val();

            $("#myModa25").modal('close');

        });

        $('input:checkbox').each(function () {

            if ($(this).attr('checked') == true) {
                alert($(this).val());
            }
        });

        //留言
        $(".addmsg").click(function () {

            var id = $(this).data('id');
            $("#sid").val(id);
            $.getJSON('/user/home/showMsg', { id: id }, function (data) {
                var html = [];
                var htmlstr = "";

                console.log(eval(data));
                var data = eval(data);

                if (data) {

                    for (var i = 0, len = data.Data.length; i < len; i++) {

                        htmlstr += '<p>' + ChangeDateFormat(data.Data[i].AddTime) + '    ' + data.Data[i].UserName + '</p>';
                        htmlstr += '<p>' + data.Data[i].Content + '</p>';
                    }

                    $("#msg").html(htmlstr);
                } else {
                    $("#msg").html('');
                }

            });


            $("#id").val($(this).data('id'));

            $("#mesg").focus();

        });

        //提供下一步
        $('.btn_next').click(function () {
            var str = '';
            $('.ckbox').each(function (index, element) {
                if ($(this).prop('checked')) {
                    str += $(this).val() + ',';
                }
            });

            $("#payment_method").val(str);

            var amount = $("#amount").val();
            $("#amountpay").text(amount * parseFloat($(".hl").html()) * parseFloat($("#beishu").html()));
        });

        $('.btnNext').click(function () {
            $("#provide_help").submit();
        });

        //详细信息
        $(".btn_detail").click(function () {


            $(".expire_date").text($(this).data("expire_date"));
            $("#bank_number").text($(this).data("bank_number"));
            $("#bank_user").text($(this).data("bank_user"));
            $("#bank_name").text($(this).data("bank_name"));
            $("#wechat").text($(this).data("wechat"));
            $("#alipay").text($(this).data("alipay"));

            $("#order_id").text($(this).data('id'));
            $(".receiver_phone").text($(this).data("receiver_phone"));
            $("#sender_phone").text($(this).data("sender_phone"));
            $("#sender_lid").text($(this).data("sender_lid"));
            $("#receiver_lid").text($(this).data("receiver_lid"));
            $(".receiver_wechat_contact").text($(this).data("receiver_wechat_contact"));
            $("#amount_order").text($(this).data('amount_order'));
            $("#sender_wechat_contact").text($(this).data("sender_wechat_contact"));
            $("#sender_manager_lid").text($(this).data('sender_manager_lid'));
            $("#sender_manager_phone").text($(this).data('sender_manager_phone'));
            $("#sender_manager_wechat_contact").text($(this).data('sender_manager_wechat_contact'));
            $("#receiver_manager_lid").text($(this).data('receiver_manager_lid'));
            $("#receiver_manager_phone").text($(this).data('receiver_manager_phone'));
            $(".receiver_manager_wechat_contact").text($(this).data('receiver_manager_wechat_contact'));
            $("#sender_username").text($(this).data('sender_username'));
            $("#receiver_username").text($(this).data('receiver_username'));
            $("#sender_musername").text($(this).data('sender_musername'));
            $("#receiver_musername").text($(this).data('receiver_musername'));
            $("#sender_Ld1").text($(this).data('sender_onld1'));
            $("#sender_Ld2").text($(this).data('sender_onld2'));
            $("#sender_Ld3").text($(this).data('sender_onld3'));
            $("#sender_LdName").text($(this).data('sender_onldname'));
            $("#sender_Ld1phone").text($(this).data('sender_onldphone'));
            $("#sender_Ld2phone").text($(this).data('sender_onld2phone'));
            $("#sender_Ld3phone").text($(this).data('sender_onld3phone'));
            $("#sender_inLd1").text($(this).data('sender_inld1'));
            $("#sender_inLd2").text($(this).data('sender_inld2'));
            $("#sender_inLd3").text($(this).data('sender_inld3'));
            $("#sender_inLdName").text($(this).data('sender_inldname'));
            $("#sender_inLd1phone").text($(this).data('sender_inldphone'));
            $("#sender_inLd2phone").text($(this).data('sender_inld2phone'));
            $("#sender_inLd3phone").text($(this).data('sender_inld3phone'));
        });

        $(".provide_complete").click(function () {
            $("#expire_date2").text($(this).data("expire_date"));
            $("#bank_number2").text($(this).data("bank_number"));
            $("#bank_user2").text($(this).data("bank_user"));
            $("#bank_name2").text($(this).data("bank_name"));
            $("#mavro").text($(this).data('mavro'));
            $("#rmb").text(Number($(this).data('mavro')) * parseFloat($(".hl").html()));
            $("#comid").val($(this).data('id'));
        });
        $(".btn-lg").click(function () {
            $("#amount").val(1000);
            $("#select").text($("#amount").val() * parseFloat($("#beishu").html()));
            $("#pay").text($("#amount").val() * parseFloat($(".hl").html()) * parseFloat($("#beishu").html()));
        })
        $(".complete").click(function () {
            $("#completid").val($(this).data('id'));
        });
        $(".comp").click(function () {
            $("#comid").val($(this).data('id'));
        });
        var selec = $("#amount").val() * parseFloat($("#beishu").html());
        var tt = selec * parseFloat($(".hl").html());
        $("#select").text(selec);
        $("#pay").text(tt);

        $("#ad").height($("#aa").css('height'));
        $("#bd").height($("#ba").css('height'));
        $("#cc").height($("#ca").css('height'));

        $("#amount").on('keyup', function () {
            $("#select").text($("#amount").val() * parseFloat($("#beishu").html()));
            $("#pay").text($("#amount").val() * parseFloat($(".hl").html()) * parseFloat($("#beishu").html()));
            var moneys=$("#amount").val() * parseFloat($("#beishu").html());
            if (moneys >= 10000 && moneys < 20000)
            { $("#pin").css("display", "block"); $("#pin2").css("display", "none"); }
            else if (moneys >= 20000)
            { $("#pin").css("display", "block"); $("#pin2").css("display", "block"); }

            else { $("#pin").css("display", "none"); $("#pin2").css("display", "none"); }
        });
    });


    function timer(num,times) {
        window.setInterval(function () {
            var EndTime = new Date(times);
            var NowTime = new Date();
            var t = EndTime.getTime() - NowTime.getTime();
            var day = Math.floor(t / 1000 / 60 / 60 / 24);
            var hour = Math.floor(t / 1000 / 60 / 60 % 24);
            var minute = Math.floor(t / 1000 / 60 % 60);
            var second = Math.floor(t / 1000 % 60);

            //var day = 0,
            //    hour = 0,
            //    minute = 0,
            //    second = 0//时间默认值
            //if (intDiff > 0) {
            //    day = Math.floor(intDiff / (60 * 60 * 24));
            //    hour = Math.floor(intDiff / (60 * 60)) - (day * 24);
            //    minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);
            //    second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
            //}
            if (minute <= 9) minute = '0' + minute;
            if (second <= 9) second = '0' + second;

            $('#' + num + 'D').html(day + "天");
            $('#' + num + 'H').html('<s id="h"></s>' + hour + '时');
            $('#' + num + 'M').html('<s></s>' + minute + '分');
            $('#' + num + 'S').html('<s></s>' + second + '秒');

        }, 1000);
    }
    //js timestamp -- data
    function formatDate(timestamp, accuracy) {
        var time = new Date(timestamp);
        var year = time.getFullYear();
        var month = time.getMonth() + 1;
        var date = time.getDate();
        var hour = time.getHours();
        var minute = time.getMinutes();
        var second = time.getSeconds();
        var result = "";

        switch (accuracy) {
            case "year":
            {
                result = year;
            }
                break;
            case "month":
            {
                result = year + "-" + month;
            }
                break;
            case "day":
            {
                result = year + "-" + month + "-" + date;
            }
                break;
            case "hour":
            {
                result = year + "-" + month + "-" + date + " " + hour + ":00";
            }
                break;
            case "minute":
            {
                result = year + "-" + month + "-" + date + " " + hour + ":" + minute;
            }
                break;
            case "second":
            {
                result = year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second;
            }
                break;
            default:
                break;
        }
        return result;
    }


    ///时间格式转化
    function ChangeDateFormat(jsondate) {
        jsondate = jsondate.replace("/Date(", "").replace(")/", "");
        if (jsondate.indexOf("+") > 0) {
            jsondate = jsondate.substring(0, jsondate.indexOf("+"));
        }
        else if (jsondate.indexOf("-") > 0) {
            jsondate = jsondate.substring(0, jsondate.indexOf("-"));
        }

        var date = new Date(parseInt(jsondate, 10));
        var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
        var currentDate = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();

        return date.getFullYear()
                + "/"
                + month
                + "/"
                + currentDate
                + "/"
                + " "
                + date.getHours()
                + ":"
                + date.getMinutes();
    }
</script>

<script type="text/javascript">
    function AfterAdd(date) {
        if (date.result == "ok") {
            alert(date.refMsg);
        }
        else {
            //$("#message").html('<p class="error">ERROR:' + result.msg + '</p>');
            alert(date.refMsg);
        }
    }
</script>
<script type="text/javascript">
    function afterAdd(date) {
        if (date.result == "ok") {
            alert(date.refMsg);
        }
        else {
            $("#message").html('<p class="error">ERROR:' + date.refMsg + '</p>');
        }
    }


    function subleave() {
        var id = $("#sid").val();
        var con = $("#mesg").val();
        var usernem = $("#username").val();

        $.post("/user/home/showEit", { id: id, content: con }, function (data) {
            if (data.result == "ok") {
                str = "";
                var myDate = new Date();
                var mytime = myDate.toLocaleString();     //获取当前时间
                str += '<p>' + mytime + '   ' + usernem + '</p>';
                str += '<p>' + con + '</p>';
                $("#msg").append(str);


            } else {
                layer.alert(data.msg);

            }
        })
    }


    function chk(val) {

        if (val == 1) {//推荐钱包
            $(".balance").val(0.00);
            $(".sell").val(0.00);
            $(".max").val(10000);

        } else if (val == 2) {//经理钱包
            $(".balance").val(0.00);
            $(".sell").val(0.00);
            $(".max").val(10000);
        } else {
            $(".balance").val(0.00);
            $(".sell").val(0.00);
            $(".max").val(24000);
        }
    }
</script>

<div class="modal fade" id="myModal6" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="color-line"></div>
            <div class="modal-header">
                <h4 class="modal-title">提供帮助</h4>

                <p class="text-warning">申请完成后，请等待系统 3-7 日随机分配受善需求</p>
            </div>
            <form action="/user/home/ProvideHelp" id="provide_help" method="post">
                <div class="modal-body" style="text-align:center">
                    <br>
                    <label class="col-sm-12 control-label">支付方式</label>
                    <div class="radio" align="left">
                        <input name="payment_method" type="hidden" id="payment_method">
                        <label> <input type="checkbox" value="0" class="ckbox" name="isBank" checked="">银行支付</label><br>
                        <label> <input type="checkbox" value="1" class="ckbox" name="isBank" checked="">支付宝支付</label><br>
                        <label> <input type="checkbox" value="2" class="ckbox" name="isBank" checked="">微信支付</label><br>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-12 control-label">提供帮助金额</label>
                        <div class="col-sm-12">

                            <input type="text" name="amount" id="amount"  onclick="onkeyup()" class="form-control " onkeyup="this.value=this.value.replace(/\D/g,'')" /> ×<span id="beishu"> 1</span>
                            <br />
                            <br />
                            <input type="password" name="password2" placeholder="请您输入二级密码" class="form-control " />
                            <br />
                            <br />
                            <input type="password" name="pin" placeholder="请您输入PIN码" style="display:none;"  class="form-control "id="pin" /><br />
                            <input type="password" name="pin2" placeholder="请您输入第二个PIN码" style="display:none;" class="form-control " id="pin2" />
                        </div>
                    </div>
                    <div class="form-group">
                        <font id="select" color="#00FF00">10</font> 感恩币 x<span class="hl">1</span>=<font id="pay" color="#FF0000">7000</font>
                        人民币
                    </div>
                    <div class="form-group">
                        <h4>
                            目前，每月增长 百分之三十
                        </h4>
                    </div>

                    <div class="icheckbox_square-green checked" style="position: relative;"><input type="checkbox" class="i-checks" name="i-checks" checked="" required="" style="position: absolute; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"></ins></div>
                    警告，我已完全了解所有风险。我决定参与 CXGY,尊重 CXGY 文化与传统。
                </div>

                <div class="modal-footer">

                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn_next btn-warning btn-sm" data-dismiss="modal" data-toggle="modal" data-target="#myModal2">提供帮助</button>

                </div>

            </form>
        </div>


    </div>


</div>

<div class="modal fade" id="myModal7" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="color-line"></div>
            <div class="modal-header">
                <h5 class="modal-title" id="title2">留言信息</h5>
                <small class="font-bold"></small>
            </div>
            <div class="modal-body" style="overflow:hidden">
                <p><strong>Order: R<span id="orderid"></span></strong></p>
                <p>你可以与这位参与者消息联系。</p>
                <p style="font-weight: bold;color: red;">
                    ATTENTION!
                    注意：如对方要求提供银行账号，支付宝，微信支付以外的转账方式，请不要同意。
                </p>
                <hr>
                <div class="col-lg-12" id="msg">
                </div>
                <hr>
                <div class="col-lg-12">

                    <form action="" method="post">
                        <input name="id" value="" id="sid" type="hidden">
                        <textarea rows="3" style="overflow: auto;resize: none;" cols="100" name="mesg" id="mesg"></textarea>
                        <br>
                        <input type="hidden" id="username" value="李艳丽"><input type="button" onclick="subleave()" value="提交">
                    </form>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>

</div>

<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="color-line"></div>
            <div class="modal-header">
                <h5 class="modal-title" id="title">确认申请</h5>
                <small class="font-bold"></small>
            </div>
            <div class="modal-body" style="height:300px;">
                <p><strong><font color="#FF0000" id="amountpay"></font> RMB  : 人民币</strong></p>
                <p>增长率为每日  感恩币，最高   感恩币</p>
                <p>注意：您的申请如果需要被取消，可以在配对单产生之前提交取消申请。一旦配对单产生了，该施善申请将无法被取消。</p>
                <p><strong><font color="#FF0000">注意：请核实交易的资料，一旦完成申请，该交易是不能被取消或更改。</font></strong></p>

            </div>
            <div class="modal-footer">
                <!--
                  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                  -->
                <button type="button" class="btnNext btn-primary">确认</button>
            </div>
        </div>
    </div>
    <!-------                    ---------->
</div>

<div class="modal fade" id="myModa20" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="color-line"></div>
            <div class="modal-header">
                <h5 class="modal-title" id="title3">确认申请</h5>
                <small class="font-bold"></small>
            </div>
            <div class="modal-body" style="height:300px;">
                <p><strong><font color="#FF0000" id="amountpay2"></font> RMB  : 人民币</strong></p>
                <p>增长率为每日  感恩币，最高  感恩币</p>
                <p>注意：您的申请如果需要被取消，可以在配对单产生之前提交取消申请。一旦配对单产生了，该施善申请将无法被取消。</p>
                <p><strong><font color="#FF0000">注意：请核实交易的资料，一旦完成申请，该交易是不能被取消或更改。</font></strong></p>

            </div>
            <div class="modal-footer">
                <!--
                  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                  -->
                <button type="button" class="btnNext btn-primary">确认</button>
            </div>
        </div>
    </div>

</div>

<div class="modal fade" id="myModa22" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="color-line"></div>
            <div class="modal-header">
                <h5 class="modal-title" id="title22">确认申请</h5>
                <small class="font-bold"></small>
            </div>
            <div class="modal-body" style="height:300px;">
                <p><strong><font color="#FF0000" id="amountpay22"></font> RMB  : 人民币</strong></p>
                <p>增长率为每日1%  感恩币，最高30%   感恩币</p>
                <p>注意：您的申请如果需要被取消，可以在配对单产生之前提交取消申请。一旦配对单产生了，该施善申请将无法被取消。</p>
                <p><strong><font color="#FF0000">注意：请核实交易的资料，一旦完成申请，该交易是不能被取消或更改。</font></strong></p>
            </div>
            <div class="modal-footer">
                <!--
                  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                  -->
                <button type="button" class="btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="myModa23" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="color-line"></div>
            <div class="modal-header">
                <h5 class="modal-title" id="title23">请选择</h5>
                <small class="font-bold"></small>
            </div>
            <div class="modal-body" style="overflow: hidden">
                <input type="radio" class="comfir" value="1" name="comfir">确认收款<br>
                <input type="radio" class="comfir" value="2" name="comfir">假的汇款单<br>
                <!--<input type="radio" class="comfir" value="3" name="comfir"/>延长付款24小时<br>-->
                <input type="hidden" value="" id="comid">
            </div>
            <div class="modal-footer">
                <!--
                  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                  -->
                <button type="button" class="btn-primary" data-dismiss="modal" id="select_fanshi">确认</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="myModa24" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">

            <div class="color-line"></div>
            <div class="modal-header">
                <h5 class="modal-title" id="title24">请选择</h5>
                <small class="font-bold"></small>
            </div>
            <div class="modal-body" style="overflow: hidden">
                <span id="yanchi"><input type="radio" class="comfir2" value="1" name="comfir2">我完成打款</span> <br>
                <input type="radio" class="comfir2" value="2"  name="comfir2">延迟24小时打款<br>
                <input type="hidden" value="" id="comid2">

            </div>
            <div class="modal-footer">
                <!--
                  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                  -->
                <button type="button" class="btn-primary" data-dismiss="modal" id="select_fanshi2">确认</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="myModa25" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="color-line"></div>
            <div class="modal-header">
                <h5 class="modal-title" id="title25">请完成操作</h5>
                <small class="font-bold"></small>
            </div>
            <form class="" method="post" id="pfrom" enctype="multipart/form-data" action="/user/home/queb">
                <div class="modal-body" style="overflow: hidden">
                    <p>上传打款图片</p>
                    <p style="margin:20px; width:220px; float:left;">
                        <span style="color:red;">注意：上传大小不能大于4M &nbsp;&nbsp;&nbsp; 支持上传：.gif /.png /.jpg  格式&nbsp;&nbsp;&nbsp; </span>
                        <input type="hidden" name="hidMainimgSrc" id="hidMainimgSrc" />
                        <input type="button" value="上传打款图片" id="btnUpManiPic" class="btn btn-info" style="width: 110px;margin-left:-10px;" />
                    </p>
                    <p style="float:left; width:300px; height:150px; ">
                        <img src="" style="float:left; width:300px; height:120px; border:none;" id="url" />
                    </p>
                    <p></p>
                    <p style="clear:both;">留言</p>
                    <input type="hidden" name="id" id="completid">
                    <input type="hidden" name="type" value="1" id="pro_status">
                    <textarea rows="4" class="form-control" name="content" id="tjcon" style="width: 100%;"></textarea>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn-primary" id="select_fanshi3">确认</button>
                </div>
            </form>
        </div>
    </div>
</div>

<div class="modal fade" id="myModal5" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="color-line"></div>
            <div class="modal-header">
                <h5 class="modal-title" id="title">详细的订单信息</h5>
                <small class="font-bold"></small>
            </div>
            <div class="modal-body" style="overflow: hidden">
                <p><strong>订单号码:<span id="order_id"></span></strong></p>

                <p>CXGY 会员请求援助总金额为:<font id="amount_order" color="#FF0000"></font>人民币</p>
                <p><strong>你必须在<font id="expire_date"></font>之前根据银行提供进一步的细节：</strong></p>

                <div style="border:1px solid #009">
                    <p>输入完整的受益人银行资料如下：</p>

                    <p><strong>受益人银行:<font id="bank_name"></font></strong></p>

                    <p><strong>受益人姓名:<font id="bank_user"></font></strong></p>

                    <p><strong>受益人账户号码: <font id="bank_number"></font></strong></p>

                    <p><strong>受益人微信号: <font id="wechat"></font></strong></p>

                    <p><strong>受益人支付宝: <font id="alipay"></font></strong></p>



                    <p>发送者的附加信息：为了更快速的确认，请在转账后发送 <font class="receiver_phone" color="#0000FF"></font></p>

                    <p>---------------------</p>

                    <p><font color="#FF0000">警告!</font>当转账时，请注意付款的用途，有的银行在转账时是要求指定的账号或者用户卡的。这是由于这笔货币会先转到代理银行中，之后再转到客户账户上。这种情况，你不可以人工翻译！请注意收件人的建议！</p>
                </div>
                <p>在提供帮助后，请按“我提供的帮助”按钮并附上付款确认文件(支票扫描、收据扫描或网上交易操作屏幕截图)放在一个新窗口上。</p>

                <p>在收到资金之前不要确认支付，因为确认了就不能撤销了，系统会默认你已经收到钱了！</p>

                <p><font color="#FF0000">注意!</font>由于一些银行希望我们要求你不能提及到关于 CXGY 的支付目的，使用非标准的方式来表达即可！</p>

                <p>应一些参与者有效使用自己银行账号用于个人用途的要求，我们要求你增加订单总额最后两个数字，使你的转账身份识别更简单。例如订单R111111169转账3000.000，你可以转账3000.069人民币。谢谢。</p>
                <p>
                    <strong>接收者:<font id="receiver_lid"></font>,


                        一代领导人:<font id="sender_inLd1"></font>,
                        二代领导人:<font id="sender_inLd2"></font>,
                        三代领导人:<font id="sender_inLd3"></font>,

                        一代领导人手机号:<font id="sender_inLd1phone"></font>,
                        二代领导人手机号:<font id="sender_inLd2phone"></font>,
                        三代领导人手机号:<font id="sender_inLd3phone"></font>,

                        会员编号为：<font id="receiver_username"></font>
                        手机号:<font class="receiver_phone"></font>,
                        联系微信:<font class="receiver_wechat_contact"></font>
                    </strong>
                </p>

                <p>
                    <strong>发送者:<font id="sender_lid"></font>,

                        一代领导人:<font id="sender_Ld1"></font>,
                        二代领导人:<font id="sender_Ld2"></font>,
                        三代领导人:<font id="sender_Ld3"></font>,

                        一代领导人手机号:<font id="sender_Ld1phone"></font>,
                        二代领导人手机号:<font id="sender_Ld2phone"></font>,
                        三代领导人手机号:<font id="sender_Ld3phone"></font>,

                        会员编号:<font id="sender_username"></font>,
                        手机号:<font id="sender_phone"></font>,
                        联系微信:<font id="sender_wechat_contact"></font>
                    </strong>
                </p>

                <p><font color="#FF0000">注意！</font></p>

                <p>
                    1)发送者必须提供指定的帮助金额

                </p><p>假如汇款或个人用户卡（一张没有连接系统），佣金由发送者支付；假如转账来自一个系统账户，佣金有系统支付。你将在适当的界面上显示出佣金总额。</p>

                <p>2)万一订单在<font id="expire_date"></font>还没有完成，你的账号将被封锁并不能再使用该系统。你的订单将给（转移）另一个参与者。</p>

                <p>
                    附：万一请求没有全额显示在应用程序上，不要紧张！请求余额将在10天内全部接受回归你的应用程序中。
                    :-))
                </p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="gethelpmodal" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="color-line"></div>
            <div class="modal-header">
                <h4 class="modal-title">接受帮助</h4>
                <p class="text-warning"></p>
            </div>
            <form method="post" action="/User/Home/ReceiveHelp" id="get_help">
                <div class="modal-body" style="overflow: hidden">
                    <input type="hidden" value="" id="wallet_type" name="wallet_type">
                    <div class="input-group m-b" id="qb">
                        <span class="input-group-addon">选择钱包</span>
                        <select onchange="chk(this.value)" class="form-control" name="buytype">
                            <option value="3"> 感恩币钱包</option>

                            <option value="2">领导奖钱包</option>
                        </select>
                        <input type="hidden" name="istype" id="istype" />
                    </div>
                    <div class="input-group m-b"><span class="input-group-addon"> 感恩币</span> <input type="text" placeholder="" class="form-control balance" readonly=""></div>
                    <div class="input-group m-b"><span class="input-group-addon">可出售 感恩币</span> <input type="text" placeholder="" class="form-control sell" readonly=""></div>
                    <div class="input-group m-b"><span class="input-group-addon">最低出售数量</span> <input type="text" class="form-control min" value="100" readonly=""></div>
                    <div class="input-group m-b"><span class="input-group-addon">最高出售限额</span> <input type="text" placeholder="" class="form-control max" value="24000" readonly=""></div>
                    <br>
                    <label class="col-sm-12 control-label">接受帮助支付方式</label>

                    <div class="radio" align="left">
                        <input name="payment_method2" type="hidden" id="payment_method2">
                        <label> <input type="checkbox" value="0" class="ckbox2" name="" checked="">银行支付</label><br>
                        <label> <input type="checkbox" value="1" class="ckbox2" name="" checked="">支付宝支付</label><br>
                        <label> <input type="checkbox" value="2" class="ckbox2" name="" checked="">微信支付</label><br>
                    </div>
                    <div class="form-group">
                        <div class="input-group">
                            <input type="text" class="form-control get_amount" style="width:240px;"  placeholder="输入 感恩币" onkeyup="this.value=this.value.replace(/\D/g,'')"  name="get_amount" id="get_amount" autocomplete="off" required=""><label id="message"></label>

                            <br />
                            <input type="password" name="password2" placeholder="请您输入二级密码" class="form-control " />

                        </div>

                    </div>
                    <div class="form-group">
                        <font id="gh_amount"></font> 感恩币 x<span class="hl">1</span>=<font id="gh"></font>
                        人民币
                    </div>
                    <div class="form-group">
                        <h4></h4>
                    </div>

                    <div class="icheckbox_square-green checked" style="position: relative;"><input type="checkbox" class="i-checks" name="i-checks" checked="" required="" style="position: absolute; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"></ins></div>
                    警告，我已完全了解所有风险。我决定参与 CXGY,尊重 CXGY 文化与传统。
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btnconfirm btn-warning btn-sm" data-toggle="modal" disabled data-dismiss="modal" data-target="#get_help_comfirm">接受帮助</button>
                </div>
            </form>
        </div>
    </div>
</div>

<div class="modal fade" id="get_help_comfirm" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="color-line"></div>
            <div class="modal-header">
                <h5 class="modal-title" id="title">确认申请</h5>
                <small class="font-bold"></small>
            </div>
            <div class="modal-body" style="overflow: hidden">
                <p><strong>您将会获得<font color="00FF00" id="amount_get"></font> RMB  : 人民币</strong></p>
                <p></p>
                <p>注意：您的申请如果需要被取消，可以在配对单产生之前提交取消申请。一旦配对单产生了，该申请将无法被取消。</p>
                <p><strong><font color="#FF0000">注意：请核实交易的资料，一旦完成申请，该交易是不能被取消或更改。</font></strong></p>
            </div>
            <div class="modal-footer">

                <button type="button" class="btn_get_next btn-primary">确认</button>
            </div>
        </div>
    </div>
</div>

<div><div class="sweet-overlay" tabindex="-1"></div><div class="sweet-alert" tabindex="-1"><div class="icon error"><span class="x-mark"><span class="line left"></span><span class="line right"></span></span></div><div class="icon warning"> <span class="body"></span> <span class="dot"></span> </div> <div class="icon info"></div> <div class="icon success"> <span class="line tip"></span> <span class="line long"></span> <div class="placeholder"></div> <div class="fix"></div> </div> <div class="icon custom"></div> <h2>Title</h2><p>Text</p><button class="cancel" tabindex="2">Cancel</button><button class="confirm" tabindex="1">OK</button></div></div>
</body>

</html>
<script>
    //上传主图
    KindEditor.ready(function (K) {
        var hidId = $("#hidmodelId").val();
        var editor = K.editor({
            uploadJson: '/user/notice/UpMainPic/?hidId=' + hidId + '&ASPSESSID=' + "sc1m5twmw4pxccdgkjxkxhpg",
            allowFileManager: true
        });
        K('#btnUpManiPic').click(function () {
            editor.loadPlugin('image', function () {
                editor.plugin.imageDialog({
                    showRemote: false,
                    imageUrl: K('#UrlMainPic').val(),
                    clickFn: function (url, title, width, height, border, align) {
                        K('#urls').html(url);
                        K('#hidMainimgSrc').val(url);
                        K('#url').attr("src", url);
                        editor.hideDialog();
                    }
                });
            });
        });
    });
    function showSpanOpenMourningHallTimeSpan(chk) {
        var spanOpenMourningHallTimeSpan = CommonUtil.getElementById("spanOpenMourningHallTimeSpan");
        var trDepartedSaintCall = CommonUtil.getElementById("trDepartedSaintCall");
        spanOpenMourningHallTimeSpan.style.display = chk.checked ? "inline" : "none";
        trDepartedSaintCall.style.display = chk.checked ? "block" : "none";

        window.top.CommonUtil.setIframeHeightByID("membercentercontent");
    }
    window.onload = function () {
        $("#ispay :radio").change(function () {
            var value = $(this).val();

            if (value == 0) {
                $("#imagesurl").hide();
            }
            else {
                $("#imagesurl").show();

            }

        });
    };
</script>